2000W / 48V LLC Battery-Charger  V1.00
xmc_eru.c File Reference
#include "xmc_eru.h"
Include dependency graph for xmc_eru.c:

Go to the source code of this file.

Macros

#define ERU_EXISEL_BITSIZE   (4UL) /* Used to set the input for path A and path B based on the channel */
 
#define ERU_EXISEL_INPUT_BITSIZE   (2UL)
 
#define XMC_ERU_ETL_CHECK_INPUT_A(input)
 
#define XMC_ERU_ETL_CHECK_INPUT_B(input)
 
#define XMC_ERU_ETL_CHECK_STATUS_FLAG_MODE(mode)
 
#define XMC_ERU_ETL_CHECK_EVENT_SOURCE(source)
 
#define XMC_ERU_ETL_CHECK_TRIGGER_EDGE(edge)
 
#define XMC_ERU_ETL_CHECK_TRIGGER_CHANNEL(channel)
 
#define XMC_ERU_OGU_CHECK_PATTERN_INPUT(input)
 
#define XMC_ERU_OGU_CHECK_PERIPHERAL_TRIGGER(trigger)
 
#define XMC_ERU_OGU_CHECK_SERIVCE_REQUEST(service)
 

Functions

void XMC_ERU_ETL_Init (XMC_ERU_t *const eru, const uint8_t channel, const XMC_ERU_ETL_CONFIG_t *const config)
 
void XMC_ERU_OGU_Init (XMC_ERU_t *const eru, const uint8_t channel, const XMC_ERU_OGU_CONFIG_t *const config)
 
void XMC_ERU_ETL_SetInput (XMC_ERU_t *const eru, const uint8_t channel, const XMC_ERU_ETL_INPUT_A_t input_a, const XMC_ERU_ETL_INPUT_B_t input_b)
 
void XMC_ERU_ETL_SetSource (XMC_ERU_t *const eru, const uint8_t channel, const XMC_ERU_ETL_SOURCE_t source)
 
void XMC_ERU_ETL_SetEdgeDetection (XMC_ERU_t *const eru, const uint8_t channel, const XMC_ERU_ETL_EDGE_DETECTION_t edge_detection)
 
XMC_ERU_ETL_EDGE_DETECTION_t XMC_ERU_ETL_GetEdgeDetection (XMC_ERU_t *const eru, const uint8_t channel)
 
void XMC_ERU_ETL_SetStatusFlagMode (XMC_ERU_t *const eru, const uint8_t channel, const XMC_ERU_ETL_STATUS_FLAG_MODE_t mode)
 
void XMC_ERU_ETL_EnableOutputTrigger (XMC_ERU_t *const eru, const uint8_t channel, const XMC_ERU_ETL_OUTPUT_TRIGGER_CHANNEL_t trigger)
 
void XMC_ERU_ETL_DisableOutputTrigger (XMC_ERU_t *const eru, const uint8_t channel)
 
void XMC_ERU_OGU_EnablePatternDetection (XMC_ERU_t *const eru, const uint8_t channel, const XMC_ERU_OGU_PATTERN_DETECTION_INPUT_t input)
 
void XMC_ERU_OGU_DisablePatternDetection (XMC_ERU_t *const eru, const uint8_t channel)
 
void XMC_ERU_OGU_EnablePeripheralTrigger (XMC_ERU_t *const eru, const uint8_t channel, const XMC_ERU_OGU_PERIPHERAL_TRIGGER_t peripheral_trigger)
 
void XMC_ERU_OGU_DisablePeripheralTrigger (XMC_ERU_t *const eru, const uint8_t channel)
 
void XMC_ERU_OGU_SetServiceRequestMode (XMC_ERU_t *const eru, const uint8_t channel, const XMC_ERU_OGU_SERVICE_REQUEST_t mode)
 

Detailed Description

Date
2016-03-10

Definition in file xmc_eru.c.

Macro Definition Documentation

◆ ERU_EXISEL_BITSIZE

#define ERU_EXISEL_BITSIZE   (4UL) /* Used to set the input for path A and path B based on the channel */

Definition at line 61 of file xmc_eru.c.

Referenced by XMC_ERU_ETL_Init(), and XMC_ERU_ETL_SetInput().

◆ ERU_EXISEL_INPUT_BITSIZE

#define ERU_EXISEL_INPUT_BITSIZE   (2UL)

Definition at line 62 of file xmc_eru.c.

Referenced by XMC_ERU_ETL_SetInput().

◆ XMC_ERU_ETL_CHECK_EVENT_SOURCE

◆ XMC_ERU_ETL_CHECK_INPUT_A

#define XMC_ERU_ETL_CHECK_INPUT_A (   input)
Value:

Definition at line 64 of file xmc_eru.c.

Referenced by XMC_ERU_ETL_SetInput().

◆ XMC_ERU_ETL_CHECK_INPUT_B

#define XMC_ERU_ETL_CHECK_INPUT_B (   input)
Value:

Definition at line 70 of file xmc_eru.c.

Referenced by XMC_ERU_ETL_SetInput().

◆ XMC_ERU_ETL_CHECK_STATUS_FLAG_MODE

#define XMC_ERU_ETL_CHECK_STATUS_FLAG_MODE (   mode)

◆ XMC_ERU_ETL_CHECK_TRIGGER_CHANNEL

◆ XMC_ERU_ETL_CHECK_TRIGGER_EDGE

◆ XMC_ERU_OGU_CHECK_PATTERN_INPUT

◆ XMC_ERU_OGU_CHECK_PERIPHERAL_TRIGGER

#define XMC_ERU_OGU_CHECK_PERIPHERAL_TRIGGER (   trigger)

◆ XMC_ERU_OGU_CHECK_SERIVCE_REQUEST